<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>赵歆瑶 · 你好</title>
    <style>
        :root {
            --primary-color: #ff99cc;
            --secondary-color: #cc99ff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: '微软雅黑', sans-serif;
            background: linear-gradient(135deg, #fff5f5, #f8f5ff);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* 花瓣飘落动画 */
        .petal {
            position: fixed;
            width: 15px;
            height: 15px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
            animation: fall 8s linear infinite;
            opacity: 0.7;
        }

        @keyframes fall {
            0% { transform: translateY(-10vh) rotate(0deg); }
            100% { transform: translateY(110vh) rotate(360deg); }
        }

        .header {
            text-align: center;
            padding: 100px 20px 60px;
            position: relative;
            overflow: hidden;
        }

        .title {
            font-size: 3.5rem;
            color: #ff6699;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            animation: glow 2s ease-in-out infinite alternate;
            margin-bottom: 20px;
        }

        @keyframes glow {
            from { text-shadow: 0 0 10px #ff99cc; }
            to { text-shadow: 0 0 20px #ff66aa; }
        }

        .heart-beat {
            animation: heartbeat 1.5s ease-in-out infinite both;
        }

        @keyframes heartbeat {
            0% { transform: scale(1); }
            15% { transform: scale(1.3); }
            30% { transform: scale(1); }
            45% { transform: scale(1.15); }
            60% { transform: scale(1); }
        }

        .message-box {
            max-width: 800px;
            margin: 40px auto;
            padding: 30px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transform: translateY(50px);
            opacity: 0;
            animation: floatUp 1s ease-out forwards;
        }

        @keyframes floatUp {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .encourage-btn {
            display: block;
            width: 200px;
            margin: 30px auto;
            padding: 15px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 30px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .encourage-btn:hover {
            transform: scale(1.1);
            background: var(--secondary-color);
        }

        .timeline {
            position: relative;
            height: 100px;
            margin: 50px 0;
        }

        .progress {
            position: absolute;
            width: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            animation: progressGrow 3s ease-out forwards;
        }

        @keyframes progressGrow {
            from { width: 0; }
            to { width: 100%; }
        }
    </style>
</head>
<body>
    <!-- 飘落花瓣 -->
    <div class="petal-container"></div>

    <header class="header">
        <h1 class="title">你好，哈哈哈</h1>
        <p style="font-size: 1.2rem; color: #666;">每个明天都比今天更美好</p>
    </header>

    <main>
        <div class="message-box">
            <h2 class="heart-beat" style="color: #ff6699; text-align: center;">🌺 致最勇敢的你 🌸</h2>
            <p style="margin: 20px 0; line-height: 1.8; font-size: 1.1rem;">
                生命如同春天的樱花树<br>
                暂时的风雨只会让绽放更加绚烂<br>
                不要放弃<br>
                等待属于你的阳光灿烂的日子
            </p>
            <button class="encourage-btn" onclick="showEncouragement()">接收能量 ✨</button>
        </div>

        <div class="timeline">
            <div class="progress"></div>
        </div>
    </main>

    <script>
        // 创建花瓣
        function createPetals() {
            const container = document.querySelector('.petal-container');
            for (let i = 0; i < 30; i++) {
                const petal = document.createElement('div');
                petal.className = 'petal';
                petal.style.left = Math.random() * 100 + 'vw';
                petal.style.animationDelay = Math.random() * 5 + 's';
                petal.style.animationDuration = (Math.random() * 3 + 5) + 's';
                container.appendChild(petal);
            }
        }

        // 鼓励语
        const encouragements = [
            "今天的你比昨天更坚强！",
            "笑容是最美的良药 😊",
            "我们都在为你加油！",
            "每一刻坚持都离健康更近一步",
            "你是生命最勇敢的战士！"
        ];

        function showEncouragement() {
            const randomMsg = encouragements[Math.floor(Math.random() * encouragements.length)];
            alert(randomMsg);
            
            // 添加心跳动画
            const btn = document.querySelector('.encourage-btn');
            btn.style.animation = 'heartbeat 0.8s ease';
            setTimeout(() => btn.style.animation = '', 800);
        }

        // 初始化花瓣
        createPetals();

        // 文字逐字动画
        document.querySelectorAll('p').forEach((p, index) => {
            setTimeout(() => {
                p.style.animation = 'textReveal 1s ease-out';
            }, index * 300);
        });
    </script>
</body>
</html>